package com.emmmya.ocs.modules.system.file.service;

import com.emmmya.ocs.common.base.BaseService;
import com.emmmya.ocs.common.vo.Result;
import com.emmmya.ocs.modules.system.file.entity.Directory;

import java.util.List;

public interface DirectoryService extends BaseService<Directory,Long> {
    Directory createDir(Directory dir) throws Exception;

    Directory getRoot();

    List<Directory> findByParentId(Long id);

    boolean reName(Long dirId, String newName);

    Result<Object> clearCache(Long dirId);

}
